<template>
  <div class="dynamicContainer">
    <div class="topCont">
      <!-- 头部 -->
      <van-nav-bar
        title="物料管理详情"
        left-arrow
        @click-left="onClickLeft"
        @click-right="onClickRight"
      >
      </van-nav-bar>
    </div>
    <!-- 动态 -->
    <div class="middleCont">
      <div class="item f">
        <p class="title">采购量：</p>
        <p class="result">500m3</p>
      </div>
      <div class="item f">
        <p class="title">供应商：</p>
        <p class="result">湖南天圣混泥土搅拌站</p>
      </div>
      <div class="item f">
        <p class="title">车牌号：</p>
        <p class="result">湘A.88888</p>
      </div>
      <div class="item f">
        <p class="title">进场时间：</p>
        <p class="result">2020-06-10 15:55</p>
      </div>
      <div class="item f">
        <p class="title">离场时间：</p>
        <p class="result">2020-06-10 15:55</p>
      </div>
    </div>
    <div class="lineH">
      <!-- 列表 -->
      <div class="dynmicList" v-for="(item, index) in 3" :key="index">
        <div class="f fb imgdiv">
          <img src="../../imgs/dynamicBg.png" alt="" class="listimg fl" />
          <img src="../../imgs/dynamicBg.png" alt="" class="listimg fl" />
          <img src="../../imgs/dynamicBg.png" alt="" class="listimg fl" />
        </div>
        <div class="listItem">进场记录</div>
       
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {
    // 返回按钮
    onClickLeft() {
      this.$router.go(-1);
    },
  },
};
</script>
<style lang="stylus" scoped>
$font-size-title = 36px;

.dynamicContainer {
  width: 100%;
  height: 100%;
  box-sizing: border-box;

  .topCont {
    width: 100%;
    height: 400px;
    background: url('../../imgs/dynamicBg.png') no-repeat;
    background-size: 100% 100%;
    padding-top: 30px;
    /deep/ [class*=van-hairline]::after {
      border-bottom-width: 0 !important;
    }
    .van-nav-bar {
      width: 100%;
      height: 88px;
      background: transparent;
      color: #fff;
      margin-bottom: 30px;
      .van-nav-bar__title, .van-nav-bar__left, .van-nav-bar__right {
        color: #fff;
        height: 87px;
        line-height: 87px;
        font-size: $font-size-title;
        z-index: 10000;
      }
      .van-icon-arrow-left {
        color: #fff;
        font-size: $font-size-title;
      }
      .van-nav-bar__text {
        color: #fff;
        font-size: $font-size-title;
      }
      .nav_right {
        height: 87px;
        line-height: 87px;

        img {
          width: 38px;
          height: 42px;
        }
      }
    }
  }

  .middleCont {
    margin: -300px auto 30px;
    padding: 40px 60px;
    box-sizing: border-box;
    width: 90%;
    background: #FFFFFF;
    box-shadow: 0px 14px 16px 0px rgba(43, 102, 253, 0.07);
    border-radius: 5px;

    .item {
      width: 100%;
      margin-bottom: 40px;

      .title {
        width: 140px;
        font-size: 24px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: rgba(40, 40, 40, 0.8);
      }

      .result {
        font-size: 24px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #1A1A1A;
      }
    }
  }

  .lineH {
    width: 100%;
    height: 100%;

  }
}

.dynmicList {
  width: 90%;
  background: #FFFFFF;
  box-shadow: 0px 14px 16px 0px rgba(43, 102, 253, 0.07);
  border-radius: 5px;
  margin: 0 auto 30px;
  padding: 30px 0 30px 30px;
  box-sizing: border-box;
  position: relative;

  .imgdiv {
    width: 100%;
    height: 243px;
    overflow-x: auto;
    margin-bottom: 25px;

    .listimg {
      min-width: 310px;
      height: 100%;
      margin-right: 20px;
    }
  }

  .listItem {
    font-size: 30px;
    font-family: Microsoft YaHei;
    font-weight: 300;
    color: #282828;
    margin-bottom: 25px;
  }
}
</style>